<?php

namespace app\wp\model;
use think\Model;

class MovieInfo extends Model{
    protected  function initialize() {
        parent::initialize();
    }
    
    public static function info($id){
        $movie = db("movie")->where(['id' => $id])->find();
        $video = db("video")->where(['movieid' => $id])->select();
        $haobao = db("stills")->where(['movieid' => $id])->select();
        
        return [
            'movie'     => $movie,
            'video'     => $video,
            'haobao'    => $haobao
        ];
    }
}
